package com.example.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.pojo.WorkOrder;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.vo.WorkOrderDetailVo;
import com.example.vo.WorkOrderVo;

import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lyj
 * @since 2023-02-20
 */
public interface IWorkOrderService extends IService<WorkOrder> {

    //根据条件分页查询
    Page<WorkOrderVo> queryByCondition(Page<WorkOrderVo> page, Map<String, Object> map);

    //根据工单code获取工单详细信息以及关联危废品详情和转运记录
    WorkOrderDetailVo queryWorkOrderDetailByWorkOrderCode(String code);

    //根据detailID获取工单详细信息以及关联危废品详情
    WorkOrderDetailVo queryWorkOrderDetailByDetailId(String detailId);
}
